-- GENERATED SPELL FOR [Blighted Corpse] --


function spell0_28101(pUnit, Event) --@Thrash Kick,n/a--
pUnit:FullCastSpellOnTarget(50306,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28101', 585, 1)
end

function Sorts_28101(pUnit, Event)
local choix_sorts_28101 = math.random(0, 0)
if choix_sorts_28101 == 0 then
pUnit:RegisterEvent('spell0_28101', 1, 1)
end
end

function mob28101_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28101', math.random(1500, 3000), 1)
end

function mob28101_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28101_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28101_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28101, 1, 'mob28101_Action')
RegisterUnitEvent(28101, 2, 'mob28101_Leave')
RegisterUnitEvent(28101, 3, 'mob28101_Kill')
RegisterUnitEvent(28101, 4, 'mob28101_Die')
